import axios from '@/lib/axios'
const $API = '/api'

// 根据淘口令/商品ID查询商品淘口令
const getTkl = data => axios.get(
  `${$API}/wy/itemDetail`, {
    ...data
  },
)

// 超级搜索接口
const superSearch = data => axios.get(
  `${$API}/wy/superSearch`, {
    ...data
  },
)

// 热销高佣产品
const hotProducts = data => axios.get(
  `${$API}/wy/hotProducts`, {
    ...data
  },
)

// 猜你喜欢
const guessLike = data => axios.get(
  `${$API}/wy/guessLike`, {
    ...data
  },
)

export default {
  getTkl,
  superSearch,
  hotProducts,
  guessLike,
}
